"use strict";
const common_vendor = require("../../../common/vendor.js");
const utils_auth_index = require("../../../utils/auth/index.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  setup(__props) {
    const tel = common_vendor.ref("18502811111");
    const code = common_vendor.ref("1234");
    const inputStyle = common_vendor.computed(() => {
      const style = {};
      if (tel.value && code.value) {
        style.color = "#fff";
        style.backgroundColor = common_vendor.index.$u.color.warning;
      }
      return style;
    });
    function submit() {
      if (common_vendor.index.$u.test.mobile(tel.value)) {
        utils_auth_index.setToken("1234567890");
        common_vendor.index.reLaunch({ url: "/pages/tab/home/index" });
      }
    }
    return (_ctx, _cache) => {
      return {
        a: common_vendor.s(common_vendor.unref(inputStyle)),
        b: common_vendor.o(submit)
      };
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-a0b890bd"]]);
wx.createPage(MiniProgramPage);
